package com.vsu.bookstore.mvc.ui.widget.fields;

import com.vaadin.ui.TextField;

public class CustomTextField extends TextField
{
  private static final long serialVersionUID = 1L;

  public CustomTextField()
  {
    super();
    addStyleName("bold");
    addStyleName("align-center");
    setWidth("100%");
    setNullRepresentation("");
    setWriteThrough(false);
    setImmediate(true);
  }

  public CustomTextField(final String caption)
  {
    this();
    setCaption(caption);
  }
}
